#include "TokenIntExp.h"
#include "Value.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s;
	while(getline(cin, s))
	{
		TokenIntExp tie(s);
		ValueInt vi = tie.getResult();
		cout << vi.str() << endl;
	}
	return 0;
}

